import { App } from "vue";
import BasicComponents from "./BasicComponents/Button";
import SingleFileComponents from "./SingleFileComponents/index.vue";
import TSXComponents from "./TSXComponents/index";

// 导出单独组件
export { BasicComponents, SingleFileComponents, TSXComponents };

// 编写一个插件，实现一个install方法
export default {
  install(app: App): void {
    app.component(BasicComponents.name, BasicComponents);
    app.component(SingleFileComponents.name, SingleFileComponents);
    app.component(TSXComponents.name, TSXComponents);
  },
};
